/**
 * ConceptualBackup.java
 * Created on March 27, 2007, 3:58 PM
 *
 *
 */

package edu.byu.isys413.jjenkins.data;

import java.sql.Date;

/**
 * A concpetual backup contains the price per GB of backups. The date is stored
 * so when a new backup is created, the database can be quereied for the most 
 * recent conceptual backup and that price can be used to create a transaction.
 *
 * @author      Jeff Jenkins
 * @version     1.0
 */
public class ConceptualBackupBO extends BusinessObject {
    
    /**
     * price per GB
     */
    private double price;
    /**
     * date object was inserted or updated
     */
    private Date date;
    
    /** Creates a new instance of ConceptualBackup */
    public ConceptualBackupBO() {
    }

    /**
     * gets the price per GB of the obect
     * @return price per GB
     */
    public double getPrice() {
        return price;
    }

    /**
     * sets the price per GB of a backup
     * @param price per GB
     */
    public void setPrice(double price) {
        this.price = price;
    }

    /**
     * sets the date the object was inserted or updated
     * @return date the conceptual backup was inserted
     */
    public Date getDate() {
        return date;
    }

    /**
     * sets the date the conceputal backup was inserted
     * @param date update or insert date
     */
    public void setDate(Date date) {
        this.date = date;
    }
    
}
